package com.titan.single.vo;

import cn.hutool.core.collection.CollectionUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserVo extends QueryPage{

    // 名字
    private String userName;

    // 年龄
    private Integer age;

    // 儿子
    private UserVo son;

    // 记录经历了几个节点
    private List<String> liteFlows;

    public List<String> getLiteFlows() {
        if (CollectionUtil.isEmpty(liteFlows)){
            liteFlows = new ArrayList<>();
        }
        return liteFlows;
    }

}
